package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.base.PageResponse;
import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingPlanMapper {

    List<NursingPlan> queryAllPlan();

    /**
     * 新增护理项目
     * @param nursingPlan
     */
    void insertNursingPlan(NursingPlan nursingPlan);

    /**
     * 新增护理项目-计划中间表
     * @param list
     */
    void insertNursingProjectPlan(List<NursingProjectPlan> list);



    /**
     * 护理计划条件分页查询
     * @param name
     * @param status
     * @return
     */
    Page<NursingPlan> selectByPage(String name, Integer status);

    /**
     * 护理计划根据id查询
     * @return
     */
    NursingPlan queryById(Long id);



    /**
     * 修改护理计划表
     * @param nursingPlan
     */
    void updatePlan(NursingPlan nursingPlan);

    /**
     * 修改中间表
     * @param nursingProjectPlanList
     */
    void updateProjectPlan(List<NursingProjectPlan> nursingProjectPlanList);
}
